/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-10-31
 * Time: 16:03
 */
public class SwitchDemo {
    public static void main(String args[]) {
        int c=48;
        switch (c<10?1:c<25?2:c<35?3:4) {
            case 1:
                System.out.println(" "+c+"℃ 有点冷。要多穿衣服。");
                break;
            case 2:
                System.out.println(" "+c+"℃ 正合适。出去玩吧。");
                break;
            case 3:
                System.out.println(" "+c+"℃ 有点热。");
                break;
            default:
                System.out.println(" "+c+"℃ 太热了!开空调。");
        }
    }
}
